package cn.com.cifi.mars.mapper.mars;

import cn.com.cifi.mars.entity.DmInvestmentReturn;
import cn.com.cifi.mars.entity.ReturnPlanVersion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 投资回款分析表 Mapper 接口
 * </p>
 *
 * @author JingYuanXiang
 * @since 2020-12-23
 */
public interface DmInvestmentReturnMapper extends BaseMapper<DmInvestmentReturn> {

    //查询各项目id及版本类型下最新版本
    List<ReturnPlanVersion> selectNewestVersionGroupByProjectIdAndVersionType(@Param("projectId") String projectId, @Param("yearMonth") String yearMonth);
    //批量写入
    void insertList(@Param("list") List<DmInvestmentReturn> dmInvestmentReturnList);
    //查询投资回款数据列表
    List<DmInvestmentReturn> selectByAffiliationMonthAndVersionType(@Param("projectIdList") List<String> projectIdList, @Param("affiliationMonth") String affiliationMonth, @Param("versionTypeList") List<String> versionTypeList);
}
